package com.wlps.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import lombok.extern.slf4j.Slf4j;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author ZWYZY
 * @since 2020/9/1
 */
@Data
@Slf4j
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_role_permission")
@NoArgsConstructor
@ApiModel(value="SysRolePermission对象", description="角色权限(sys_user)")
public class SysRolePermission implements Serializable {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = " ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Long roleId;
    private Long permissionId;
}
